﻿<%@ Page Language="C#" ValidateRequest="false" %>
<%@ Import Namespace="System.IO" %>
<%@ Register Assembly="Typps" Namespace="Typps" TagPrefix="t" %>

<%--/*http://developer.yahoo.com/yui/yuitest/*/--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>This is a template for tests. Copy/paste this file when a test page is required?</title>
    <!--CSS-->
    <link rel="stylesheet" type="text/css" href="yuitest/css/logger.css" />
    <link rel="stylesheet" type="text/css" href="yuitest/css/testlogger.css" />
    <!-- Dependencies -->
    <script src="yuitest/yahoo-dom-event.js" type="text/javascript"></script>
    <script src="yuitest/logger-min.js" type="text/javascript"></script>
    <!-- Source File -->
    <script src="yuitest/yuitest-min.js" type="text/javascript"></script>
    <script src="yuitest/event-simulate-min.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:ScriptManager ID="ScriptManager1" ScriptMode="Debug" runat="server">
    </asp:ScriptManager>
    </div>
    </form>
    <script type="text/javascript">
        var oTestCase = new YAHOO.tool.TestCase({

            name: "TestCase Name",
    
            //---------------------------------------------
            // Setup and tear down
            //---------------------------------------------
    
            setUp : function () {
                this.data = { name : "Nicholas", age : 28 };
            },

            tearDown : function () {
                delete this.data;
            },

            //---------------------------------------------
            // Tests
            //---------------------------------------------

            testName: function () {
                YAHOO.util.Assert.areEqual("Nicholas", this.data.name, "Name should be 'Nicholas'");
            },

            testAge: function () {
                YAHOO.util.Assert.areEqual(28, this.data.age, "Age should be 28");
            }    
        });
    </script>
    <script type="text/javascript">
         //create the logger
         var logger = new YAHOO.tool.TestLogger();

        //add the test cases and suites
        YAHOO.tool.TestRunner.add(oTestCase);
 
        //run all tests
        YAHOO.tool.TestRunner.run();
    </script>
</body>
</html>
